$f: 19.2;


.home {
  position: relative;
  background: #F9F9F9;

  .bg1 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1;

    img {
      width: 100%;
      display: block;
      object-fit: cover;
    }
  }

  .bg2 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;

    img {
      width: 100%;
      display: block;
      object-fit: cover;
    }
  }

  .bg3 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    img {
      width: 100%;
      display: block;
      object-fit: cover;
      height: 100%;
    }
  }

  .main {
    padding: 364/$f+vw 160/$f+vw 120/$f+vw 160/$f+vw ;
    position: relative;
    z-index: 10;
    .title {
      text-align: center;

      h1 {
        color: #0F77FF;
        font-weight: 500;
        line-height: 0.8;
        text-transform: capitalize;
        margin-bottom: 24/$f+vw;
      }

      .tag {
        color: #000;
        font-weight: 300;
        line-height: 1.5;
      }
    }

    .types {
      margin: 279/$f+vw 0 100/$f+vw 0;
      display: flex;
      justify-content: center;

      a {
        width: 370/$f+vw;
        height: 78/$f+vw;
        border-radius: 40/$f+vw;
        background: rgba(255, 255, 255, 0.30);
        backdrop-filter: blur(28.67752456665039px);
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 30/$f+vw;
        transition: all 600ms;
        color: #5D5D5D;
        cursor: pointer;
        position: relative;
        .dialog_success{
          position: absolute;
          left: 50%;
          top:-100/$f+vw;
          transform: translateX(-50%);
          padding: 15/$f+vw 18/$f+vw;
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 10/$f+vw;
          background: #F0EFEF;
          flex-shrink: 0;
          z-index: 10;
          display: none;
          svg {
            width: 24/$f+vw;
            height: auto;
            display: block;
          }
      
          p {
            color: #747474;
            font-weight: 400;
            margin-left: 6/$f+vw;
            white-space: nowrap;
          }
        }

        &.on {
          background: #358CFF;
          color: white;
        }
      }
    }

    .list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 60/$f+vw;

      a {
        display: block;
        width: 100%;
        padding: 45/$f+vw 45/$f+vw 30/$f+vw 45/$f+vw;
        border-radius: 20/$f+vw;
        border: 1.492px solid #FFF;
        background: rgba(255, 255, 255, 0.30);
        box-shadow: -8.95px 7.458px 2.983px 0px rgba(255, 255, 255, 0.20) inset;
        backdrop-filter: blur(42.77552795410156px);

        box-shadow: 24px 30px 50px rgba(110, 163, 242, 0.12);
        .pic{
          border-radius: 15/$f+vw;
          overflow: hidden;
          img{
            width: 100%;
            display: block;
            object-fit: cover;
            border-radius: 15/$f+vw;
            transition: all 600ms;
          }
        }
        .dt{
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-top: 20/$f+vw;
          .pt{
            color: #000;
            line-height: 1.67;
            text-transform: capitalize;
            width: 497/$f+vw;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
          .more{
            display: flex;
            align-items: center;
            p{
              line-height: 1.35;
              margin-right: 14/$f+vw;
            }
            svg{
              width: 18/$f+vw;
              display: block;
              height: auto;
            }
          }
        }
        &:hover{
          .pic{
            img{
              transform: scale(1.05);
            }
          }
        }
      }
    }

    .pager{
      margin-top: 103/$f+vw;
      display: flex;
      justify-content: center;
      align-items: center;
      a{
        margin: 0 5/$f+vw;
        svg{
          width: 24/$f+vw;
          height: 24/$f+vw;
          display: block;
        }
      }
      .nums{
        a{
          color: #8B8B8B;
          padding: 0 10/$f+vw;
          position: relative;
          &.on{
            border-bottom: 2px solid #007AFF;
            color:#007AFF;
          }
        }
      }
    }
  }



  @media screen and (max-width: 1024px) {
    .main{
      padding: 120px 5%;
      .title{
        h1{
          margin-bottom: 12px;
        }
      }
      .types{
        margin: 60px 0  30px 0;
        flex-wrap: wrap;
        a{
          width: 100%;
          height: 60px;
          margin: 0 0 20px 0;
          border-radius: 40px;
          .dialog_success{
            padding: 7px 9px;
            border-radius: 5px;
            top:50%;
            transform: translate(-50%,-50%);
            svg{
             width: 16px;
            }
            p{
             margin-left: 5px;
             font-size: 14px;
            }
         }
        }
      }
      .list{
        display: block;
        a{
          padding: 20px  20px 15px 20px;
          border-radius: 15px;
          width: 100%;
          margin-bottom: 30px;
          .pic{
            border-radius: 10px;
            img{
              border-radius: 10px;
            }
          }
          .dt{
            margin-top: 10px;
            .pt{
              width: 70%;
            }
            .more{
              p{
                margin-right: 7px;
              }
              svg{
                width: 12px;
              }
            }
          }
        }
      }
      .pager{
        margin-top: 50px;
        a{
          margin: 0 5px;
          svg{
            width: 16px;
            height: 16px;
          }
        }
        .nums{
          a{
            padding: 0 5px;
          }
        }
      }
    }
  }
}